<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <css file="__STATIC__/css/base.css"/>
            <link type="text/css" href="__STATIC__/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-1.8.0.min.js"></script>
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
            <js file="__PUBLIC__/js/category.js"/>
            <js file="__STATIC__/js/base.js"/>
            <jsconst/>
            <script type="text/javascript">
                $(function(){
                    $("#tabs").tabs();
                })
            </script>
 
</head>
<body style="padding:10px;">
    <div class="path">
        <strong>您现在的位置：</strong>
        <empty value="{$hd.get.catid}">添加顶级栏目<noempty>添加子栏目</empty>
    </div>
    <form action="__CONTROL__/add" method="post">
        <input type="hidden" name="pid" value="<empty value='$hd.get.catid'>0<noempty>{$hd.get.catid}</empty>"/>
        <div id="tabs">
            <ul>
                <li><a href="#tabs-0">基本内容</a></li>
                <li><a href="#tabs-1">生成静态规则</a></li>
                <li><a href="#tabs-2">模板设置</a></li>
            </ul>
            <div id="tabs-0">   
                <table class="table2">
                    <tr>
                        <th>栏目名称：</th>
                        <td><input type="text" name="cname" style="width:360px;"/></td>
                    </tr>
                    <tr>
                        <th>目录名称：</th>
                        <td><input type="text" name="catdir" style="width:200px;"/>
                            <span class="desc">目录名称必须为英文</span>
                    </tr>
                    <tr>
                        <th>跳转url：</th>
                        <td><input type="text" name="gourl" style="width:260px;"/></td>
                    </tr>
                    <tr>
                        <th>是否显示：</th>
                        <td><input type="radio" name="isshow" value="1" checked="checked"/>是&nbsp;&nbsp;
                            <input type="radio" name="isshow" value="0"/>否</td>
                    </tr>
                    <tr>
                        <th>关键字：</th>
                        <td><input type="text" name="ckeywords" style="width:300px;"/></td>
                    </tr>
                    <tr>
                        <th>描述：</th>
                        <td><textarea style="height:60px;width:90%" name="descroption"></textarea></td>
                    </tr>
                </table>
            </div>

            <div id="tabs-1">
                <table class="table2">
                    <tr>
                        <th>栏目生成静态：</th>
                        <td><input type="radio" name="iscathtml" value="1" checked="checked"/>是&nbsp;&nbsp;
                            <input type="radio" name="iscathtml" value="0"/>否</td>
                    </tr>
                    <tr>
                        <th>内容生成静态：</th>
                        <td><input type="radio" name="isconhtml" value="1" checked="checked"/>是&nbsp;&nbsp;
                            <input type="radio" name="isconhtml" value="0"/>否</td>
                    </tr>
                    <tr>
                        <th>栏目页静态规则：</th>
                        <td><input type="text" name="cathtml" style="width:360px;" value="{catdir}/{y}{m}{d}/{catid}_{page}.html"/>
                            <span class="desc">{catdir}栏目目录，{y}年{m}月{d}日{catid},栏目id,{page}页码</span></td>
                    </tr>
                    <tr>
                        <th>内容页静态规则：</th>
                        <td><input type="text" name="conhtml" style="width:360px;" value="{catdir}/{y}{m}{d}/{nid}.html"/>
                            <span class="desc">{catdir}栏目目录，{y}年{m}月{d}日{catid},栏目id,{page}页码</span></td>
                        </td>
                    </tr>
                </table>
            </div>

           <div id="tabs-2">
                    <table class="table2">
                        <tr>
                            <th>首页模板：</th>
                            <td><input type="text" name="indextpl"  id="indextpl" style="width:360px;" value="{tpl}/news_index.html"/>
                                <a class="button2" tpltype="indextpl">选择模板</a>
                            </td>
                        </tr>
                        <tr>
                            <th>列表页模板：</th>
                            <td><input type="text" name="listtpl" id="listtpl" style="width:360px;" value="{tpl}/news_list.html"/>
                                <a class="button2" tpltype="listtpl">选择模板</a>
                            </td>
                        </tr>    
                        <tr>
                            <th>内容页模板：</th>
                            <td><input type="text" name="contpl" id="contpl" style="width:360px;" value="{tpl}/news_con.html"/>
                                <a class="button2" tpltype="contpl">选择模板</a>
                            </td>    
                        </tr>
                    </table>
                </div>
                <div style="padding-left:100px;">
                    <input type="submit" value="添加栏目" class="submit"/>
                </div>
            </div>
        </form>
        <div id="selecttemplate" class="dialog1 opacity90">
            <a href="#" id="closewindow" class="button1" style="display:block;width:60px;margin-left: 10px;">关闭窗口</a>
            <iframe src="" id="selecttplview" frameborder="0"></iframe>
        </div>
</body>
</html>
